package com.feinno.module.security.web;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.feinno.framework.common.web.AbstractJQueryEntityController;
import com.feinno.module.security.domain.Portallet;
import com.feinno.module.security.service.PortalletService;
import com.google.common.collect.Maps;

@Controller
@RequestMapping(value = "/manage/system/portallet")
public class PortalletController extends AbstractJQueryEntityController<Portallet, PortalletService> {

	private static Map<Integer, String> allCollapsibles = Maps.newTreeMap();
	static {
		allCollapsibles.put(1, "true");
		allCollapsibles.put(0, "false");
	}

	@SuppressWarnings("unused")
	@Autowired
	private PortalletService portalletService;

	
	@Override
	protected void referenceData(HttpServletRequest request, Map<String, Object> model) {
		model.put("allCollapsibles", allCollapsibles);
	}

}
